package com.itcast.googleplay.holder;

import com.itcast.googleplay.utils.UIUtils;

import android.util.TypedValue;
import android.view.View;
import android.widget.TextView;

public class CategoryTitleHolder extends BaseHolder {

	private TextView textView;

	@Override
	public void initData() {
		Object data = getData();
		if(data instanceof String){
			String result = (String)data;
			textView.setText(result);
		}
	}

	@Override
	public View initView() {
		textView = new TextView(UIUtils.getContext());
		textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 26);
		return textView;
	}

}
